package com.kuang.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.kuang.domain.entity.User;
import org.apache.ibatis.annotations.Param;

/**
 * @ClassName UserMapper
 * @Description
 * @Author Augenestern_QXL
 * @Version 1.0
 */



public interface UserMapper extends BaseMapper<User> {

    /**
     * 查找所有用户
     * @param id
     * @return
     */
    User findMyUser(Long id);


    /**
     * Mybatis Plus 条件构造器 @Param注解指定参数的名字
     * @param wrapper
     * @return
     */
    User findMyUserByWrapper(@Param(Constants.WRAPPER) Wrapper<User> wrapper);
}


































